﻿<%@ Page Language="C#" MasterPageFile="~/web/pages/NguoiTimViec.master" AutoEventWireup="true" CodeFile="nguoitimviec_taohoso_b2.aspx.cs" Inherits="web_pages_nguoitimviec_taohoso_b2" Title="Tao ho so xin viec - buoc 2" %>
<%@ OutputCache Duration="1" VaryByParam="None" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript">
	$(function() {
	    var d = new Date();
	    //alert(d.getFullYear());
		var dates = $('#ctl00_ContentPlaceHolder1_txtLamTu, #ctl00_ContentPlaceHolder1_txtLamDen').datepicker({
		    monthNamesShort: ['Tháng 1','Tháng 2','Tháng 3','Tháng 4','Tháng 5','Tháng 6','Tháng 7','Tháng 8','Tháng 9','Tháng 10','Tháng 11','Tháng 12'], 
		    dayNamesMin:  ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'],
		    yearRange: '1970:'+d.getFullYear()+'',dateFormat: 'dd-mm-yy',changeMonth: true,changeYear: true,
			defaultDate: "+1w",
			onSelect: function(selectedDate) {
				var option = this.id == "ctl00_ContentPlaceHolder1_txtLamTu" ? "minDate" : "maxDate";
				var instance = $(this).data("datepicker");
				var date = $.datepicker.parseDate(instance.settings.dateFormat || $.datepicker._defaults.dateFormat, selectedDate, instance.settings);
				dates.not(this).datepicker("option", option, date);
			}
		});

	});
	</script>

    <a href="javascript:void(0);" id="menufast">
        <div class="vl_left_news_main_tt" style="position:relative;">            
            Tạo hồ sơ tìm việc
        </div>
    </a>
    <div>
        <div style="padding: 2px;" class="ui-widget ui-widget-content ui-corner-all ">
            <div style="height: 20px; padding-top: 5px; padding-left: 20px;" class="ui-widget-header ui-corner-all ">
            <span class="ui-icon ui-icon-contact" style="float: left; margin-right: 0.3em;"></span>
                Bước 2: Kinh nghiệm làm việc</div>
            <div style="padding: 5px;">
                <div style="text-align: center">
                    <table>
                        <tr>
                            <td align="left" style="width: 232px; height: 37px;">
                                <span class="ui-icon ui-icon-person" style="float: left; margin-right: 0.3em;"></span>                                Chức danh(đầy đủ):</td>
                            <td align="left" style="width: 440px; height: 37px;">
                                <asp:TextBox ID="txtChucDanh" runat="server" Width="426px" Style="float: left;"></asp:TextBox>
                            </td>
                            <td style="width: 99px; height: 37px;">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtChucDanh"
                                    ErrorMessage="*"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 232px; height: 37px">
                            <span class="ui-icon ui-icon-lightbulb" style="float: left; margin-right: 0.3em;"></span>
                            Chức danh</td>
                            <td align="left" style="width: 440px; height: 37px">
                                &nbsp;<asp:DropDownList ID="cboChucDanh" runat="server" Width="194px">
                                </asp:DropDownList></td>
                            <td style="width: 99px; height: 37px">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="cboChucDanh"
                                    ErrorMessage="mục này phải chọn"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 232px; height: 37px">
                           <span class="ui-icon ui-icon-lightbulb" style="float: left; margin-right: 0.3em;"></span>
                                Tên công ty</td>
                            <td align="left" style="width: 440px; height: 37px">
                                <asp:TextBox ID="txtTenCongTy" runat="server" Style="float: left" Width="426px"></asp:TextBox></td>
                            <td style="width: 99px; height: 37px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 232px; height: 37px">
                            <span class="ui-icon ui-icon-lightbulb" style="float: left; margin-right: 0.3em;"></span>
                                Địa chỉ công ty</td>
                            <td align="left" style="width: 440px; height: 37px">
                                <asp:TextBox ID="txtDiaChi" runat="server" Style="float: left" Width="426px"></asp:TextBox></td>
                            <td style="width: 99px; height: 37px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 232px; height: 37px">
                           <span class="ui-icon ui-icon-lightbulb" style="float: left; margin-right: 0.3em;"></span>
                                Khu vực <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtDiaChi"
                                    ErrorMessage="(*)"></asp:RequiredFieldValidator></td>
                            <td align="left" style="width: 440px; height: 37px">
                                <asp:TextBox ID="txtKhuVuc" runat="server" Style="float: left" Width="198px"></asp:TextBox>
                                <a id="diachicongty_NTV" href="javascript:void(0);"><span class="ui-icon ui-icon-zoomin"></span></a>
                                <asp:HiddenField ID="txtMaDiaChi" runat="server" />
                            </td>
                            <td style="width: 99px; height: 37px">
                                </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 232px; height: 37px">
                                Thời gian làm việc</td>
                            <td align="left" style="width: 440px; height: 37px">
                                từ:<asp:TextBox ID="txtLamTu" runat="server"  Width="150px"></asp:TextBox>&nbsp; 
                                đến:<asp:TextBox id="txtLamDen" runat="server" Width="150px" ></asp:TextBox>
								<br />
								<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtLamTu"
                                    ErrorMessage="Phải là định dạng ngày tháng" ValidationExpression="^(((0?[1-9]|[12]\d|3[01])[\.\-\/](0?[13578]|1[02])[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|((0?[1-9]|[12]\d|30)[\.\-\/](0?[13456789]|1[012])[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|((0?[1-9]|1\d|2[0-8])[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|(29[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00)))$"></asp:RegularExpressionValidator>
                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtLamDen"
                                    ErrorMessage="Phải là định dạng ngày tháng" ValidationExpression="^(((0?[1-9]|[12]\d|3[01])[\.\-\/](0?[13578]|1[02])[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|((0?[1-9]|[12]\d|30)[\.\-\/](0?[13456789]|1[012])[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|((0?[1-9]|1\d|2[0-8])[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|(29[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00)))$"></asp:RegularExpressionValidator>
								</td>
                            </td>
                            <td style="width: 99px; height: 37px">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtLamTu"
                                    ErrorMessage="*"></asp:RequiredFieldValidator>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtLamDen"
                                    ErrorMessage="*"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 232px; height: 37px">
                                Mức lương</td>
                            <td align="left" style="width: 440px; height: 37px">
                                <asp:TextBox ID="txtMucLuong" runat="server" Style="float: left" Width="200px"></asp:TextBox></td>
                            <td style="width: 99px; height: 37px">
                                <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtMucLuong"
                                    ErrorMessage="Bạn nhập không đúng định dạng" Type="Double"></asp:RangeValidator></td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 232px; height: 37px">
                                Lý do nghĩ</td>
                            <td align="left" style="width: 440px; height: 37px">
                                <asp:TextBox ID="txtLyDoNghi" runat="server" Height="38px" Style="float: left" TextMode="MultiLine"
                                    Width="420px"></asp:TextBox></td>
                            <td style="width: 99px; height: 37px">
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 232px; height: 37px">
                                Các thành tích nổi bật, hay nội dung khác:</td>
                            <td align="left" style="width: 440px; height: 37px">
                                &nbsp;<asp:TextBox ID="txtMoTa" runat="server" Height="38px" Style="float: left"
                                    TextMode="MultiLine" Width="420px"></asp:TextBox></td>
                            <td style="width: 99px; height: 37px">
                            </td>
                        </tr>
                    </table>
                    <asp:Button ID="btnSave" runat="server" CssClass="ui-corner-all ui-state-default"
                        Height="27px" Text="  Lưu  " OnClick="btnSave_Click" Width="80px" UseSubmitBehavior="False"/>
                    &nbsp; &nbsp; &nbsp;<asp:Button ID="btnCancel" runat="server" CssClass="ui-corner-all ui-state-default"
                        Height="27px" Text="  Hủy  " OnClick="btnCancel_Click" CausesValidation="False" UseSubmitBehavior="False" Width="80px"/><br />
                    <% 
                        if (mess.Length > 1)
                        {
                     %>`
                    <div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all"> 
				                <p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span> 
				                <strong>Chú Ý:</strong> <%=mess %></p>
			        </div>
                                    <%
                                        }
                                     %>
                    </div>
                    <hr />
                    <div style="height: 20px; padding-top: 5px; padding-left: 20px;" class="ui-widget-header ui-corner-all ">
                        Danh sách kinh nghiệm làm việc</div>                            
                    <table border="1" class="atable" id="table4" width="100%">
                        <thead>
                        <tr>
                            <th style="width: 210px; height: 15px;">Chức danh</th>
                            <th style="width: 310px; height: 15px;">Công ty</th>
                            <th style="width: 110px; height: 15px;">Mức lương</th>
                            <th colspan="2" style="width: 110px; height: 15px;">Chỉnh sửa</th>
                        </tr>
                        </thead>
                        <%
                            if (listPublic.Length>0)
                            {
                                for (int i = 0; i<listPublic.Length; i++)
                                { 
                                    
                                
                        %>
                        <tr>
                            <td><%=listPublic[i].chuc_danh.ToString()%></td>
                            <td><%=listPublic[i].ten_cong_ty.ToString()%></td>
                            <td><%=listPublic[i].muc_luong.ToString()%></td>
                            <td>
                                <a href="?act=edit&id=<%=listPublic[i].ma_kinh_nghiem.ToString()%>"><img src="../images/icons/pencil.png" title="Sửa nội dung kinh nghiệm này" /></a>
                                <a href="?id=<%=listPublic[i].ma_kinh_nghiem.ToString()%>&act=del"  onclick="return confirm('Bạn có chắc chắn muốn xóa kinh nghiệm này không?')"><img src="../images/icons/cross_circle.png" title="Xóa kinh nghiệm này" /></a>
                            </td>
                        </tr>
                        <%}
                            } %>
                    </table>
                     </div>
                    <br />
                    <div style="clear:both;text-align:center;margin:auto;">
                    <asp:Button ID="btnNextReg"  CssClass="ui-corner-all ui-state-default" runat="server"
                        Text="Bước 3: Thông tin về chuyên môn, học vấn" Height="27px" OnClick="Button1_Click" CausesValidation="False" />
                    </div>
                    <br />
                <h4>
                    <span class="ui-icon ui-icon-arrowthickstop-1-w" style="float: left; margin-right: 0.3em;">
                    </span><a href="nguoitimviec_taohoso_b1.aspx"> Quay lại. </a>
                </h4>
                <hr />
                <span class="ui-icon ui-icon-comment" style="float: left; margin-right: 0.3em;"></span>
                Dịch vụ được cung cấp bởi Trung Tâm GTVL. Vui lòng đọc kỹ <a href="javascript:void(0);" id="dieukhoansudung">
                    <b>Điều khoản sử dụng</b></a> khi đăng tải và sử dụng thông tin từ website này.
            </div>
        </div>
    
 <%--Dialog Setup--%>
    <div>
        <div id="dgl_diachi" class="ui-dialog-content ui-widget-content" style="height: auto;
            min-height: 61px; width: auto;">
            
            <br />
            Tỉnh / TP
            <asp:DropDownList ID="cbb_tinhthanh" runat="server">
            </asp:DropDownList>
            Quận / Huyện <span id="ajax_qh">
                <asp:DropDownList ID="cbb_quanhuyen" runat="server" onclick="loadPX()">
                </asp:DropDownList>
            </span>Phường / Xã <span id="ajax_px">
                <asp:DropDownList ID="cbb_phuongxa" runat="server">
                </asp:DropDownList>
            </span>
        </div> 
    </div>    
    
</asp:Content>

